include ../../Make.defines

TARGET=fileTest
#获取当前录下所有的.c文件
SRC = $(wildcard *.c) 
#将$(SRC)中所有的.c替换成.o文件
OBJ = $(patsubst %.c, %.o, $(SRC))

Iner_Inc=./Include

${TARGET} : ${OBJ}
	${CC} -o $@ $^ -L ${Libs} -I ${Inc} -I ${Iner_Inc}  $(CFLAGS)

%.o : %.c
	$(CC) -c $< -o $@  -L ${Libs} -I ${Inc} -I ${Iner_Inc} $(CFLAGS)

.PHONY: lean
clean:
	rm -rf *.o ${TARGET}
